package cn.itsource.ymcc.dto;

import cn.itsource.ymcc.domain.Course;
import cn.itsource.ymcc.domain.CourseDetail;
import cn.itsource.ymcc.domain.CourseMarket;
import cn.itsource.ymcc.domain.CourseResource;

import javax.validation.constraints.NotNull;
import java.util.List;

public class CourseSaveDto {
    @NotNull(message = "参数不能为空")
    private Course course;
    @NotNull(message = "参数不能为空")
    private CourseDetail courseDetail;
    @NotNull(message = "参数不能为空")
    private CourseMarket courseMarket;
    @NotNull(message = "参数不能为空")
    private CourseResource courseResource;
    private List<Long> teacharIds;

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public CourseDetail getCourseDetail() {
        return courseDetail;
    }

    public void setCourseDetail(CourseDetail courseDetail) {
        this.courseDetail = courseDetail;
    }

    public CourseMarket getCourseMarket() {
        return courseMarket;
    }

    public void setCourseMarket(CourseMarket courseMarket) {
        this.courseMarket = courseMarket;
    }

    public CourseResource getCourseResource() {
        return courseResource;
    }

    public void setCourseResource(CourseResource courseResource) {
        this.courseResource = courseResource;
    }

    public List<Long> getTeacharIds() {
        return teacharIds;
    }

    public void setTeacharIds(List<Long> teacharIds) {
        this.teacharIds = teacharIds;
    }

    @Override
    public String toString() {
        return "CourseSaveDto{" +
                "course=" + course +
                ", courseDetail=" + courseDetail +
                ", ourseMarket=" + courseMarket +
                ", courseResource=" + courseResource +
                ", teacharIds=" + teacharIds +
                '}';
    }
}
